import { createRouter, createWebHistory } from 'vue-router';
// import PurchaseDevice from '../pages/device_life/views/PurchaseDevice.vue';
// import PurchaseRequest from '../pages/device_life/views/PurchaseRequest.vue';


const router = createRouter({
  history: createWebHistory(),

  routes: [
    {
      path: '/',
      redirect: '/login.html'
    },
    // {
    //   path: '/device_life',
    //   name: 'DeviceLifeApp',
    //   component: DeviceLifeApp,
    //   redirect: '/device_life/purchase_device',
    //   // 或者使用嵌套路由方式
    //   children: [
    //             {
    //       path: 'purchase_device',
    //       name: 'PurchaseDevice',
    //       component: PurchaseDevice
    //     },
    //     {
    //       path: 'purchase_request',
    //       name: 'PurchaseRequest',
    //       component: PurchaseRequest
    //     },
    //   ]
    // },
  ]
})

export default router;